<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html">

    <h:body>

        <ui:composition template="./plantilla.xhtml">

            <ui:define name="titulo">
                Sumita
            </ui:define>

            <ui:define name="content">
                <h2>Sumita</h2>
                <h:form id="forma">
                    <h:panelGrid columns="4">
                        <h:outputLabel for="contador" accesskey="C" value="Contador: " />
                        <h:inputText id="contador" value="#{cSumita.contador}" label="Contador" required="true" requiredMessage="Captura un número"/>
                        <h:outputLabel value="#{cSumita.contador}" />
                        <h:message for="contador" />

                        <h:panelGroup />

                        <h:panelGroup>
                            <h:commandButton accesskey="S" value="Sumar" action="#{cSumita.suma()}" />
                        </h:panelGroup>
                    </h:panelGrid>
               </h:form>
            </ui:define>

        </ui:composition>

    </h:body>
</html>
